<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>操作日志详细信息</title>
    <link rel="stylesheet" href="/bootstrap-3.3.7-dist/css/bootstrap.css">
</head>
<body>

<div class="container">
    <P>
    <h2>操作日志详细信息</h2></P>

    <form >
        <table class="table table-bordered">

            <tbody>

            <tr>
                <td>用户id</td>
                <td><label th:text="${Data.userId}"></label></td>
                <td>用户账户</td>
                <td><label th:text="${Data.userName}"></label></td>
            </tr>
            <tr>
                <td>操作类型</td>
                <td>
                    <th:block th:switch="${Data}">
                        <label th:case="${Data.operationType== 1}" th:text="新增操作"></label>
                        <label th:case="${Data.operationType == 2}" th:text="删除操作"></label>
                        <label th:case="${Data.operationType == 3}" th:text="更新操作"></label>
                        <label th:case="${Data.operationType == 4}" th:text="查看操作"></label>
                        <label th:case="${Data.operationType == 5}" th:text="登录操作"></label>
                    </th:block>
                    <!--<label th:text="${Data.operationTypeEnum}"></label>-->
                </td>
                <td>url</td>
                <td><label th:text="${Data.url}"></label></td>
            </tr>
            <tr>
                <td>详细信息</td>
                <td colspan="3"><label th:text="${Data.logMessage}"></label></td>
            </tr>
            <tr>
                <td>操作时间</td>
                <td colspan="3"><label th:text="${Data.createTime}"></label></td>
            </tr>

            </tbody>
        </table>
        <!--<div th:replace="${_page.html}"></div>-->
    </form>
</div>
<script src="/js/jquery-3.3.1.min.js"></script>
<script src="/layui/layui.js"></script>
<script src="/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
<script type="text/javascript">
    var layer ;
    $(function(){
        layui.use('layer', function(){
            var layer = layui.layer;
            layer.msg('hello');
        });
    })
    function btnLook(e){
        var id = $(e).attr("field");
        layer.open({
            title:"日志详细信息",
            content:"/TrackLog/findOne?id="+id,
            type:2,
            area:["80%","80%"],
        })
    }

</script>
</body>
</html>